from fastapi import APIRouter

category_router = APIRouter(prefix="/category-operate", tags=["类别"])

@category_router.get("/")
async def category_index():
    return {"message": "类别首页"}

@category_router.get("/categories")
async def get_categories():
    return {"message": "获取所有类别"}

@category_router.post("/")
async def create_category():
    return {"message": "创建类别"}

@category_router.put("/{category_id}")
async def update_category(category_id: int):
    return {"message": "更新类别"}

@category_router.delete("/{category_id}")
async def delete_category(category_id: int):
    return {"message": "删除类别"}